<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<script src="${pageContext.request.contextPath }/js/jquery.js"></script>
<!-- JS 	//  alert(resp.responseText); -->

<script type="text/javascript">
		$.post("${pageContext.request.contextPath}/menu/findAllmenu.action",
				{"id":${empss.uuid}},
				function(result, start, resp) {
					//alert(resp.responseText);
					var str1='';
				//	for(var s =0;s<result.length;s++){ 
				//		if(result[s].puuid=0){
				//			str1+='<li><a href="#" class="open"><i class="icon-home"></i>'+result[s].name+'</a><ul>';
					//	}
				//	}
					for(var i  =0;i<result.length;i++){ 
						if(result[i].puuid==1){							
							str1 +='<li><a href="#" class="open"><i class="icon-home"></i>'+result[i].name+'</a><ul>';
						var str2='';
							for (var j = 0; j< result[i].mm.length; j++) {	
								str2+='<li><a href="${pageContext.request.contextPath}/'+result[i].mm[j].url+'">'+result[i].mm[j].name+'</a></li>';
							}
						str1=str1+str2+"</ul></li></ul></li>";
						}
					//alert(str);
					}
				$("#nav").append(str1);

				$(window).resize(function()
						  {
						    if($(window).width() >= 765){
						      $(".sidebar #nav").slideDown(350);
						    }
						    else{
						      $(".sidebar #nav").slideUp(350); 
						    }
					});

					$("#nav > li > a").on('click',function(e){
						      if($(this).parent().hasClass("has_sub")) {
						        e.preventDefault();
						      }   

						      if(!$(this).hasClass("subdrop")) {
						        // hide any open menus and remove all other classes
						        $("#nav li ul").slideUp(350);
						        $("#nav li a").removeClass("subdrop");
						        
						        // open our new menu and add the open class
						        $(this).next("ul").slideDown(350);
						        $(this).addClass("subdrop");
						      }
						      
						      else if($(this).hasClass("subdrop")) {
						        $(this).removeClass("subdrop");
						        $(this).next("ul").slideUp(350);
						      } 
						      
					});
						  
						  
					$(".sidebar-dropdown a").on('click',function(e){
						      e.preventDefault();
						      if(!$(this).hasClass("open")) {
						        // hide any open menus and remove all other classes
						        $(".sidebar #nav").slideUp(350);
						        $(".sidebar-dropdown a").removeClass("open");
						        
						        // open our new menu and add the open class
						        $(".sidebar #nav").slideDown(350);
						        $(this).addClass("open");
						      }
						      
						      else if($(this).hasClass("open")) {
						        $(this).removeClass("open");
						        $(".sidebar #nav").slideUp(350);
						      }
					});
					
					$(window).resize(function()
						  {
						    if($(window).width() >= 765){
						      $(".sidebar #nav").slideDown(350);
						    }
						    else{
						      $(".sidebar #nav").slideUp(350); 
						    }
					});

				
				});
		
    </script>
<!-- jQuery -->
<script src="${pageContext.request.contextPath }/js/bootstrap.js"></script>
<!-- Bootstrap -->
<script
	src="${pageContext.request.contextPath }/js/jquery-ui-1.9.2.custom.min.js"></script>
<!-- jQuery UI -->
<script src="${pageContext.request.contextPath }/js/fullcalendar.min.js"></script>
<!-- Full Google Calendar - Calendar -->
<script
	src="${pageContext.request.contextPath }/js/jquery.rateit.min.js"></script>
<!-- RateIt - Star rating -->
<script
	src="${pageContext.request.contextPath }/js/jquery.prettyPhoto.js"></script>
<!-- prettyPhoto -->

<!-- jQuery Flot -->
<script src="${pageContext.request.contextPath }/js/excanvas.min.js"></script>
<script src="${pageContext.request.contextPath }/js/jquery.flot.js"></script>
<script
	src="${pageContext.request.contextPath }/js/jquery.flot.resize.js"></script>
<script src="${pageContext.request.contextPath }/js/jquery.flot.pie.js"></script>
<script
	src="${pageContext.request.contextPath }/js/jquery.flot.stack.js"></script>

<!-- jQuery Notification - Noty -->
<script src="${pageContext.request.contextPath }/js/jquery.noty.js"></script>
<!-- jQuery Notify -->
<script src="${pageContext.request.contextPath }/js/themes/default.js"></script>
<!-- jQuery Notify -->
<script src="${pageContext.request.contextPath }/js/layouts/bottom.js"></script>
<!-- jQuery Notify -->
<script src="${pageContext.request.contextPath }/js/layouts/topRight.js"></script>
<!-- jQuery Notify -->
<script src="${pageContext.request.contextPath }/js/layouts/top.js"></script>
<!-- jQuery Notify -->
<!-- jQuery Notification ends -->

<script src="${pageContext.request.contextPath }/js/sparklines.js"></script>
<!-- Sparklines -->
<script
	src="${pageContext.request.contextPath }/js/jquery.cleditor.min.js"></script>
<!-- CLEditor -->
<script
	src="${pageContext.request.contextPath }/js/bootstrap-datetimepicker.min.js"></script>
<!-- Date picker -->
<script
	src="${pageContext.request.contextPath }/js/jquery.uniform.min.js"></script>
<!-- jQuery Uniform -->
<script
	src="${pageContext.request.contextPath }/js/bootstrap-switch.min.js"></script>
<!-- Bootstrap Toggle -->
<script src="${pageContext.request.contextPath }/js/filter.js"></script>
<!-- Filter for support page -->
<script src="${pageContext.request.contextPath }/js/custom.js"></script>
<!-- Custom codes -->
<script src="${pageContext.request.contextPath }/js/charts.js"></script>
<!-- Charts & Graphs -->